﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for plPersonnel
/// </summary>
/// 
namespace CE.PersonalLoan
{
    public class PLPersonnel
    {
        //Applicant Info field name
        private Int64 _plpersonnelid;
        private Int64 _plid;
        private string _plsalutation;
        private string _plfirstname;
        private string _plsurname;
        private string _plnameofappear;
        private string _plnationality;
        private string _plidtype;
        private string _plidnumber;
        private DateTime _pldob;
        private char _plgender;
        private string _plmaritalstatus;
        private Int32 _plnoofdepent;
        private string _plhighedu;
        private string _plemail;
        private string _plmobileno;
        private string _plhomephone;
        private string _plofficephone;
        private string _plunitno;
        private string _plhomeno;
        private string _plstreet;
        private string _plcountry;
        private string _plpostal;
        private Int32 _plyrsofthere;
        private string _plemrcenyno;
        private string _plrelation;
        private bool _plmailing;
        private bool _plsupplement;
        private Int64 _refceuserid;
        private Int64 _vieweddetailid;
        //Common field
        private bool _plstatus;
        private DateTime _plcreateddate;
        private DateTime _plmodifieddate;
        //extra field for future extend
        private string _info1;
        private string _info2;
        private string _info3;
        private string _info4;
        private string _info5;

        public PLPersonnel()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 PLPersonnelId
        {
            get { return _plpersonnelid; }
            set { _plpersonnelid = value; }
        }

        public Int64 PLId
        {
            get { return _plid; }
            set { _plid = value; }
        }

        public string PLSalutation
        {
            get { return _plsalutation; }
            set { _plsalutation = value; }
        }

        public string PLFirstName
        {
            get { return _plfirstname; }
            set { _plfirstname = value; }
        }

        public string PLSurName
        {
            get { return _plsurname; }
            set { _plsurname = value; }
        }

        public string PLNameOfAppear
        {
            get { return _plnameofappear; }
            set { _plnameofappear = value; }
        }

        public string PLNationality
        {
            get { return _plnationality; }
            set { _plnationality = value; }
        }

        public DateTime PLDOB
        {
            get { return _pldob; }
            set { _pldob = value; }
        }

        public string PLIdType
        {
            get { return _plidtype; }
            set { _plidtype = value; }
        }

        public string PLIdNo
        {
            get { return _plidnumber; }
            set { _plidnumber = value; }
        }

        public char PLGender
        {
            get { return _plgender; }
            set { _plgender = value; }
        }

        public string PLMaritalStatus
        {
            get { return _plmaritalstatus; }
            set { _plmaritalstatus = value; }
        }

        public Int32 PLNoOfDepent
        {
            get { return _plnoofdepent; }
            set { _plnoofdepent = value; }
        }

        public string PLHighEdu
        {
            get { return _plhighedu; }
            set { _plhighedu = value; }
        }

        public string PLEmail
        {
            get { return _plemail; }
            set { _plemail = value; }
        }

        public string PLMobileNo
        {
            get { return _plmobileno; }
            set { _plmobileno = value; }
        }

        public string PLHomePhone
        {
            get { return _plhomephone; }
            set { _plhomephone = value; }
        }

        public string PLOfficePhone
        {
            get { return _plofficephone; }
            set { _plofficephone = value; }
        }

        public string PLUnitNo
        {
            get { return _plunitno; }
            set { _plunitno = value; }
        }

        public string PLHomeNo
        {
            get { return _plhomeno; }
            set { _plhomeno = value; }
        }

        public string PLStreetName
        {
            get { return _plstreet; }
            set { _plstreet = value; }
        }

        public string PLCountry
        {
            get { return _plcountry; }
            set { _plcountry = value; }
        }

        public string PLPostalCode
        {
            get { return _plpostal; }
            set { _plpostal = value; }
        }

        public Int32 PLYearsofThere
        {
            get { return _plyrsofthere; }
            set { _plyrsofthere = value; }
        }

        public string PLEmergencyNo
        {
            get { return _plemrcenyno; }
            set { _plemrcenyno = value; }
        }

        public string PLRelation
        {
            get { return _plrelation; }
            set { _plrelation = value; }
        }

        public bool PLMailing
        {
            get { return _plmailing; }
            set { _plmailing = value; }
        }

        public bool PLSupplementary
        {
            get { return _plsupplement; }
            set { _plsupplement = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool PLStatus
        {
            get { return _plstatus; }
            set { _plstatus = value; }
        }

        public DateTime PLCreatedDate
        {
            get { return _plcreateddate; }
            set { _plcreateddate = value; }
        }

        public DateTime PLModifiedDate
        {
            get { return _plmodifieddate; }
            set { _plmodifieddate = value; }
        }

        public string PLInfo1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string PLInfo2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string PLInfo3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public string PLInfo4
        {
            get { return _info4; }
            set { _info4 = value; }
        }

        public string PLInfo5
        {
            get { return _info5; }
            set { _info5 = value; }
        }

        public void ClearFields()
        {

            //Applicant Info field name
            _plpersonnelid = 0;
            _plid = 0;
            _plsalutation = "";
            _plfirstname = "";
            _plsurname = "";
            _plnameofappear = "";
            _plnationality = "";
            _pldob = CE.Global.General.GetUTCDateTime();
            _plidtype = "";
            _plidnumber = "";
            _plgender = 'N'; 
            _plmaritalstatus = "";
            _plnoofdepent = 0;
            _plhighedu = "";
            _plemail = "";
            _plmobileno = "";
            _plhomephone = "";
            _plofficephone = "";
            _plunitno = "";
            _plhomeno = "";
            _plstreet = "";
            _plcountry = "";
            _plpostal = "";
            _plyrsofthere = 0;
            _plemrcenyno = "";
            _plrelation = "";
            _plmailing = false;
            _plsupplement = false;
            //extra field for future extend
            _refceuserid = 0;
            _vieweddetailid = 0;
            _plstatus = false;
            _plcreateddate = CE.Global.General.GetUTCDateTime();
            _plmodifieddate = CE.Global.General.GetUTCDateTime();
            _info1 = "";
            _info2 = "";
            _info3 = "";
            _info4 = "";
            _info5 = "";
        }
    }

}